package com.juku2024.juku.db.dao

import androidx.room.*
import com.juku2024.juku.db.entity.AppConfigEntity

@Dao
interface AppConfigDao {

    @Query("SELECT * FROM appconfigentity")
    fun query(): List<AppConfigEntity>?

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(appConfigEntity: AppConfigEntity)

    @Update
    fun update(appConfigEntity: AppConfigEntity)

    @Query("DELETE FROM appConfigEntity")
    fun delete()
}